CloudFoundry Getting Started with the CF CLI

Download the CF Command Line Tools

The latest version of the CF CLI can be found here.

Locate and download the latest Binary for your operating system type. Navigate to the location of the downloaded tgz, or zip file, and extract. Place the CF binary somewhere convenient (in your system path for example). Verify it's installed correctly, from your favorite terminal run: $ cf --version cf version 6.3.2-217929b-2014-07-24T00:26:56+00:00 Set your no_proxy environment variables!

If you are working on the GE network, or via GE VPN, you will need to configure your local environments no_proxy environment variable to include the following hosts:

$ export no_proxy=api.grc-apps.svc.ice.ge.com,login.grc-apps.svc.ice.ge.com,loggregator.grc-apps.svc.ice.ge.com,uaa.grc-apps.svc.ice.ge.com,console.grc-apps.svc.ice.ge.com,$no_proxy To make these changes permanent, you should add this command to your ~/.bash_profile or ~/.profile files

Once your no_proxy environment variable has been set, you are ready to login to CloudFoundry.

Login to Cloud Foundry

Your email address is your CloudFoundry User Name.

To start the login process execute cf login -a https://api.grc-apps.svc.ice.ge.com --skip-ssl-validation

The following flow shows a successful login attempt.

$ cf login -a https://api.grc-apps.svc.ice.ge.com --skip-ssl-validation API endpoint: https://api.grc-apps.svc.ice.ge.com

Email> [email protected]

Password> Authenticating... OK

Targeted org predix-apm

Targeted space dev

API endpoint: https://api.grc-apps.svc.ice.ge.com (API version: 2.18.0) User: [email protected] Org: predix-apm Space: dev CHANGE YOUR PASSWORD!

Please change your password using cf passwd before doing anything else!

$ cf passwd

Current Password>

New Password>

Verify Password> Changing password... OK Please log in again

$ Logout (cf logout), then repeat the login process (note you don't need to specify the API URL again!).

$ cf logout Logging out... OK

$ cf login API endpoint: https://api.grc-apps.svc.ice.ge.com

Email> [email protected]

Password> Authenticating... OK

Targeted org predix-apm

Targeted space dev

API endpoint: https://api.grc-apps.svc.ice.ge.com (API version: 2.18.0) User: [email protected] Org: predix-apm Space: dev Congratulations, you're now ready to deploy your first app!